package com.xiangxiao.rpan.storage.dao;

import com.xiangxiao.rpan.storage.entity.TUploadedRecord;

/**
 * @auther xiangxiao
 * @email 573768011@qq.com
 * @data 2023/9/6 16:24
 */
public interface TUploadedRecordMapper {

  /**
   * 查询
   *
   * @param fileMD5 文件
   * @return
   */
  TUploadedRecord selectByFileMD5(String fileMD5);

  /**
   * 更新
   *
   * @param record
   * @return
   */
  int updateByPrimaryKey(TUploadedRecord record);

  /**
   * 新增一条新记录
   *
   * @param record
   * @return
   */
  int insertRecord(TUploadedRecord record);
}
